-- GENERATED SPELL FOR [Coilfang Slavemaster] --


function spell0_17805(pUnit, Event) --@Disarm,n/a--
pUnit:FullCastSpellOnTarget(6713,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17805', 5293, 1)
end

function spell1_17805(pUnit, Event) --@Frenzy,Self--
pUnit:FullCastSpellOnTarget(8269,pUnit)
pUnit:RegisterEvent('Sorts_17805', 667, 1)
end

function spell2_17805(pUnit, Event) --@Geyser,Self--
pUnit:FullCastSpellOnTarget(10987,pUnit)
pUnit:RegisterEvent('Sorts_17805', 5304, 1)
end

function Sorts_17805(pUnit, Event)
local choix_sorts_17805 = math.random(0, 2)
if choix_sorts_17805 == 0 then
pUnit:RegisterEvent('spell0_17805', 1, 1)
end
if choix_sorts_17805 == 1 then
pUnit:RegisterEvent('spell1_17805', 1, 1)
end
if choix_sorts_17805 == 2 then
pUnit:RegisterEvent('spell2_17805', 1, 1)
end
end

function mob17805_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17805', math.random(1500, 3000), 1)
end

function mob17805_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17805_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17805_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17805, 1, 'mob17805_Action')
RegisterUnitEvent(17805, 2, 'mob17805_Leave')
RegisterUnitEvent(17805, 3, 'mob17805_Kill')
RegisterUnitEvent(17805, 4, 'mob17805_Die')
